home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
music
/
5mods_1.arj
/
SPOT023.MOD
< prev
next >
Wrap
Text File
|
1994-01-29
|
5KB
|
190 lines
Spotnick #1 @5497
Thu Jan 27 08:40:43 1994
0R: net34: @2050 (via @1040) [04:08 01/29/94]
0R: net33: @1040 (via @1046) [03:44 01/29/94]
0R: net33: @1046 (via @5497) [08:47 01/21/94]
0R: net33: @5497 [08:43 01/27/94]
╓────────────────────────────────────────────────────────────────────────────╖
║ Mod Name : SPOT023.MOD Mod Author: Spotnick 1@5497 WWIVnet ║
║ Difficulty : █▒▒▒▒▒ 1@5497 WWIVlink ║█
║ WWIV Version : 4.23 1@5497 IceNet ║█
║ Mod Date : 01/27/94 ║█
║ Files Affected: XFER.C / XFEROVL.C / BATCH.C / VARDEC.H ║█
║ Description : Free Files For WWIV v4.23 ║█
╙────────────────────────────────────────────────────────────────────────────╜█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Long Description:
This modification will allow to have free files on your system, very
easy to use, very easy to install.
Fast Legend: (+) = add, (-) = remove, (*) = modify, (=) = existing
Step 1: Load VARDEC.H and do the following change:
= #define mask_no_ratio 0x0020
= #define mask_cdrom 0x0040
+ #define mask_free 0x0080
= #define mask_extended 0x8000
Step 2: Load XFER.C now and do the following changes:
= if (strncmp(u.filename,"WWIV4",5)==0)
= i1=1;
= else {
* if (!ratio_ok() && (!(u.mask && mask_free))) {
= return(-1);
= }
= }
= if (i1) {
= write_inst(INST_LOC_DOWNLOAD,udir[curdir].subnum,INST_FLAGS_ONLINE);
Lower...
= bad=1;
= }
= if ((syscfg.req_ratio>0.0001)
= && (ratio()<syscfg.req_ratio)
= && (!thisuser.exempt & exempt_ratio)
* && (bad==0) && (!(u.mask && mask_free))) {
= ansic(2);
= outstr(get_string(730));
= sprintf(s," %-5.3f. ",ratio());
Step 3: Load BATCH.C and do the following change:
= do {
= tleft(1);
= if ((syscfg.req_ratio>0.0001) && (ratio()<syscfg.req_ratio))
= rr=1;
= if (thisuser.exempt & exempt_ratio)
= rr=0;
+ if (u.mask && mask_free)
+ rr=0;
Lower...
= ok=0;
= thisk=bytes_to_k(batch[i].len);
= if ((syscfg.req_ratio>0.0001) && (ratio1(addk+thisk)<syscfg.req_ratio) &&
* (!(thisuser.exempt & exempt_ratio)) && (!(u.mask && mask_free)))
= ok=0;
= if (ok) {
= sh_write(f,s,strlen(s));
Lower...
nl();
if (!ratio_ok() && (!(u.mask && mask_free)) {
nl();
pl(get_string(883));
nl();
done=1;
break;
}
nl();
prt(5,get_string(877));
had=yn();
Step 4: Load XFEROVL.C and add the following function at the end of the file
void free_file(void)
{
char s[81],s1[81],s2[81],*ss,s3[81],ch;
int i,cp,f;
uploadsrec u;
nl();
nl();
prt(2,get_string(829));
input(s,12);
if (s[0]==0)
return;
if (strchr(s,'.')==NULL)
strcat(s,".*");
align(s);
dliscan();
nl();
strcpy(s3,s);
i=recno(s);
while (i>0) {
f=sh_open1(dlfn,O_RDONLY | O_BINARY);
cp=i;
SETREC(f,i);
sh_read(f,(void *)&u,sizeof(uploadsrec));
f=sh_close(f);
nl();
printfileinfo(&u,udir[curdir].subnum);
nl();
prt(5,"Make This File Free? ");
ch=ynq();
if (ch=='Q')
break;
else if (ch=='N') {
i=nrecno(s3,cp);
u.mask &= ~mask_free;
continue;
}
u.mask |= mask_free;
f=sh_open(dlfn,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
SETREC(f,i);
sh_write(f,(void *)&u,sizeof(uploadsrec));
f=sh_close(f);
i=nrecno(s3,cp);
}
}
Step 4: Load BBS.C and change this
= if (strcmp(s,"/?")==0)
= printmenu(8);
=
+ if (strcmp(s,"/P")==0)
+ file_free();
+
= if (strcmp(s,"READIDZ")==0)
Step 5: Load XFER.C and add some of these.
= outstr(get_string(750)); pl(u->date);
= outstr(get_string(751)); pl(u->upby);
= outstr(get_string(752)); pln(u->numdloads);
+ if (u->mask && mask_extended)
+ outstr("File Status: Free Download");
= nl();
= abort=0;
In function printinfo, change this:
= ansic(fc ? FRAME : 0);
= osan((okansi() ? "║" : "|"),abort,&next);
+ if (u->mask && mask_extended)
+ sprintf(s1,"Free");
+ else
= sprintf(s1,"%d",u->numdloads);
=
= for (i=0; i<4-(int)strlen(s1); i++)
= s[i]=32;
Step 6: Make FCNS and compile! It should be okay! If you find any errors,
E-Mail me right away! Use /P just like the function //REN in the
X-Fer section to make some files free.
Spotnick, SysOp Of Alternative Worlds
Auto-SysOp Validation - Ratio Free On WWIV Stock - 0-30 Days Files
Official WWIV Support Board - Running v4.23
(514)-664-4503 (US Robotics Sportster 14.4k)
Call Here To Get Last Updated French Strings